﻿<%namespace YouHP.Utility%>
<%namespace YouHP.BLL%>

  <%csharp%>if(IsLog == false) { <%/csharp%>

<%if UserData.Id!=ProfileData.Id%>

            <%csharp%>TempUrl = "/Profile/LogList.aspx?uid=" + ProfileData.Id;<%/csharp%>

        <%csharp%>TempUrl = ModuleCtrl.Header7("lattestLogs","最新日志",this.GetUrl(TempUrl),">>更多"); <%/csharp%>
        {TempUrl}
        <div class="toptopiclist">
           
            <%csharp%>foreach(LogTopicInfo item in LogDataListBase) { <%/csharp%>
            
                <li style="border-bottom:1px dotted #CCCCCC; margin-bottom:2px;">

                         <%csharp%>TempUrl="/Profile/Log.aspx?uid=" + item.HostUserId + "&lid=" + item.Id; <%/csharp%>
                        <%csharp%>
                            if(item.Title.Length < 10) {
                        <%/csharp%>    
                        &nbsp;<a href="{this.GetUrl(TempUrl)}">{item.Title}</a>
                        <%csharp%> }else{ <%/csharp%>        
                        &nbsp;<a href="{this.GetUrl(TempUrl)}">{item.Title.Substring(0,10)} ...</a>
                        <%csharp%> } <%/csharp%> 
                        <%csharp%> TempUrl = item.PostTime.ToString("yyyy-MM-dd hh:mm"); <%/csharp%>
			              <p><font color="#808080">(发于:{TempUrl})</font></p>  

              </li>    
            <%csharp%> } <%/csharp%>
          

        </div>
        <%csharp%>TempUrl = ModuleCtrl.Footer("lattestLogs"); <%/csharp%>
        {TempUrl}
<%else%>

      <%csharp%>TempUrl = ModuleCtrl.Header4("lattestLogReply","最新日志评论",false,false); <%/csharp%>
        {TempUrl}
        <div class="toptopiclist">
           
            <%csharp%>foreach(LogCommentInfo item in LogCommentLattest) { <%/csharp%>
            
                <li style="border-bottom:1px dotted #000; margin-bottom:2px;">

                        <%csharp%>TempUrl = "/Profile/Log.aspx?uid="+ProfileData.Id+"&lid=" + item.LogTopicId;<%/csharp%>
                        <%csharp%>
                            if(item.Body.Length < 10) {
                        <%/csharp%>    
                        &nbsp;<a href="{this.GetUrl(TempUrl)}">{item.Body}</a>
                        <%csharp%> }else{ <%/csharp%>        
                        &nbsp;<a href="{this.GetUrl(TempUrl)}">{item.Body.Substring(0,10)} ...</a>
                        <%csharp%> } <%/csharp%> <br />
                        <%csharp%> TempUrl = "/Profile/Index.aspx?uid="+item.PostUserId;<%/csharp%>
			             <p><font color="#808080">(<a href="{this.GetUrl(TempUrl)}" target="_blank"><font style="color:Blue;">{item.PostUserName}</font></a>&nbsp;
			             <%csharp%> TempUrl = item.PostTime.ToString("MM-dd hh:mm"); <%/csharp%>
			              发于:{TempUrl})</font></p>

              </li>    
            <%csharp%> } <%/csharp%>
 

        </div>
        <%csharp%>TempUrl = ModuleCtrl.Footer("lattestLogReply"); <%/csharp%>
        {TempUrl}

<%/if%>


<%if PrData.DiseaseId>0%>
    <%csharp%>TempUrl = "/PatientList.aspx?dszid=" + PrData.DiseaseId;<%/csharp%>  
  <%csharp%>TempUrl = ModuleCtrl.Header7("Patientslikeme","和他(她)一样的病友",this.GetUrl(TempUrl),">>更多"); <%/csharp%>
{TempUrl}

        <ul class="pictureliststyle">
              <%csharp%>foreach(UserInfo item in PatientDataListRelate){ if(item.Id != ProfileData.Id){<%/csharp%>
                <%csharp%> TempUrl="/Profile/Index.aspx?uid="+item.Id;<%/csharp%>
                <li>
                <a href="{GetUrl(TempUrl)}" class="user_img" target="_blank"><img src="{item.Avatar}" width="45px" height="45px"/></a>
                <p><a href="{GetUrl(TempUrl)}" target="_blank">{item.UserName}</a></p>
                </li>
                
                <%csharp%>} } <%/csharp%>

 
          </ul>
          

 <%csharp%>TempUrl = ModuleCtrl.Footer("Patientslikeme"); <%/csharp%>
 {TempUrl}
 <%/if%>

        
<%csharp%> } <%/csharp%>

  <%csharp%>TempUrl = ModuleCtrl.Header4("LattestVisitors","最新访问",false,false); <%/csharp%>
{TempUrl}

  <ul class="pictureliststyle">
<%csharp%>foreach(VisitRecordInfo item in LattestVisitRecordList){<%/csharp%>
<%csharp%> TempUrl="/Profile/Index.aspx?uid="+item.VisitUserId;<%/csharp%>
            
                <li>
                <a href="{GetUrl(TempUrl)}" class="user_img" target="_blank"><img src="{UserBLL.Instance.GetUserInfo(item.VisitUserId).Avatar}" width="45px" height="45px"/></a>
                <p><a href="{GetUrl(TempUrl)}" target="_blank">{item.VisitUserName}</a></p>
                <p style="font-size:11px; color:#808080;line-height:12pt;">{Utils.GetTimeSpanStr(item.VisitTime)}</p>
                </li>
             
           
                <%csharp%> } <%/csharp%>
                  
  </ul> 

 <%csharp%>TempUrl = ModuleCtrl.Footer("LattestVisitors"); <%/csharp%>
 {TempUrl}



<%csharp%>if(IsComment == false) { <%/csharp%>

<%csharp%>TempUrl = "/Profile/CommentList.aspx?uid=" + ProfileData.Id;<%/csharp%>

 <%csharp%>TempUrl = ModuleCtrl.Header7("lattestComments","最新留言",this.GetUrl(TempUrl),">>更多"); <%/csharp%>
{TempUrl}
    <div class="content">
      
        <%csharp%>foreach(CommentInfo item in CommentDataListBase) { <%/csharp%>
        <div style="padding:5px 0px 5px 0px; border-bottom:1px dotted #000000;">
            <div style="float:left;">
                <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.PostUserId;<%/csharp%>
	            <a href="{this.GetUrl(TempUrl)}">
                    <img class="avatar" width="45" height="45" src="{item.PostAvatar}"/><br/>
                </a>
            </div>
            <div style="margin:0pt 10px 0pt 50px;">
           
                    <a class="client_name" href="{this.GetUrl(TempUrl)}">{item.PostUserName}:</a>
                    <%csharp%>TempUrl = "/Profile/CommentList.aspx?uid=" + ProfileData.Id;<%/csharp%>
                    <%csharp%>
                        if(item.Body.Length < 20) {
                    <%/csharp%>    
                    &nbsp;<a href="{this.GetUrl(TempUrl)}">{item.Body}</a>
                    <%csharp%> }else{ <%/csharp%>        
                    &nbsp;<a href="{this.GetUrl(TempUrl)}">{item.Body.Substring(0,18)} ...</a>
                    <%csharp%> }<%/csharp%> 
            </div>
            <div style="clear:both;"></div>
        </div>        
        <%csharp%> } <%/csharp%>
     
  
    </div>
 <%csharp%>TempUrl = ModuleCtrl.Footer("lattestComments"); <%/csharp%>
 {TempUrl}

<%csharp%> } <%/csharp%>

<%csharp%>if(IsAction == false) { <%/csharp%>

        <%csharp%>TempUrl = "/Profile/ActionList.aspx?uid=" + ProfileData.Id;<%/csharp%>

 <%csharp%>TempUrl = ModuleCtrl.Header7("lattestActions","最新互动",this.GetUrl(TempUrl),">>更多"); <%/csharp%>
{TempUrl}
    <div class="content">
       <ul class="hugbook">
	                <%csharp%>
	                    foreach(ActionInfo item in ActionDataListBase) { 
		            <%/csharp%>
	                <li>
	                    <div style="float:left; text-align:center;">
	                        <img align="bottom" src="{Utils.GetHugUrl(item.ActionType)}"/>
	                        <br />
	                        <span class="graytext" style="font-weight: bold;">{Utils.GetHugText(item.ActionType)}</span>
	                    </div>
                         
                        <div>
                            来自
                                <%csharp%>TempUrl = "/Profile/Index.aspx?uid=" + item.FromUserId;<%/csharp%>
                                <a class="client_name" href="{this.GetUrl(TempUrl)}">{item.FromUserName}</a>
                                <br />
                                <%csharp%>TempUrl = item.PostTime.ToString("yyyy-MM-dd  hh:mm");<%/csharp%>
                                {TempUrl}

                        </div>
	                </li>
	                <%csharp%> } <%/csharp%>
	            </ul> 


    </div>
 <%csharp%>TempUrl = ModuleCtrl.Footer("lattestActions"); <%/csharp%>
 {TempUrl}

<%csharp%> } <%/csharp%>
<%csharp%>if(IsFriend == false) { <%/csharp%>

<%csharp%>TempUrl = "/Profile/FriendList.aspx?uid=" + ProfileData.Id;<%/csharp%> 
 <%csharp%>TempUrl = ModuleCtrl.Header7("lattestFriends","最新好友",this.GetUrl(TempUrl),">>更多"); <%/csharp%>
{TempUrl}
      <ul class="pictureliststyle">
<%csharp%>foreach(UserInfo item in FriendDataListBase){<%/csharp%>
<%csharp%> TempUrl="/Profile/Index.aspx?uid="+item.Id;<%/csharp%>
                
                <li>
                <a href="{GetUrl(TempUrl)}" class="user_img" target="_blank"><img src="{item.Avatar}" width="45px" height="45px"/></a>
                <p><a href="{GetUrl(TempUrl)}" target="_blank">{item.UserName}</a></p>
               
                </li>
              
                <%csharp%> } <%/csharp%>
  </ul>
 <%csharp%>TempUrl = ModuleCtrl.Footer("lattestFriends"); <%/csharp%>
 {TempUrl}

<%csharp%> } <%/csharp%>


